      
 <script type="text/javascript">
<!--
  $(function(){
  	sy.admin.menu${(OP.TMenu.id)!}.save = function(obj) {
  		if($("#menu${(OP.TMenu.id)!}Form").valid()){
  			$.ajax({
				type: "POST", 
				url: "op_save_${(OP.TMenu.id)!}.action",
				data: $('#menu${(OP.TMenu.id)!}Form').serializeArray(),
				dataType: "json",
				success: function(data){
					if(data.success) {
						sy.closeWindow();
						//$('#admin_menu${(OP.TMenu.id)!}_datagrid').bootstrapTable('refresh');
						sy.reloadDiv('op_list_${(OP.TMenu.id)!}.action');
					}
					sy.toastrsAlert({
		       		     code: data.success ? 'success' :'error',
		       		     msg: data.success ? '成功' :'失败'
		       		});
				}
			});
  		}
		 
	}
   
  	
  });

//-->
</script>
       <div class="wrapper wrapper-content gray-bg bgg animated ${(cfg.animated)!}  "   style="height:100%" >
                <div class="ibox">
                    <div class="ibox-content">
                    <form class="form-horizontal m-t required-validate" id="menu${(OP.TMenu.id)!}Form"  action="op_save_${(OP.TMenu.id)!}.${(cfg.suffix)!'action'}"  method="post">
                    <input type="hidden" name="id" value="${(dto.id)!}"/>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">字典名称：</label>
                                <div class="col-sm-8">
                                   <input  name="message" class="form-control" value="${(dto.message)!}" validate="{required:true,messages:{required:'请填写字典名称'}}" type="text">
                                    <!-- <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 这里写点提示的内容</span> -->
                                </div>
                            </div>
                               <#include "../inc.html"/>
                             <div class="form-group">
                                <label class="col-sm-3 control-label">上级字典：</label>
                                 <div class="col-sm-8">
                                       <select class="form-control m-b" name="TDict.id">
                                        <option value= "">请选择上级菜单</option>
                                        <@my.list id="d" sql="select * from t_sys_dict a where 1=1 order by a.scort " >
										<option value="${d['id']}" <#if d['id'] == (dto.TDict.id)!0> selected</#if>>
											<#list 0..(d['nlevel']!0) as a>－</#list>＋ ${d['message']}
										</option>
										</@my.list>
                                       </select>
                                </div> 
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">skey：</label>
                                <div class="col-sm-8">
                                    <input name="skey" class="form-control" type="text"  value="${(dto.skey)!}" validate="{required:true,messages:{required:'请填写skey'}}"  >
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">类型：</label>
                                <div class="col-sm-8">
                                    <input name="type" class="form-control" type="text"  value="${(dto.type)!}" validate="{required:true,messages:{required:'请填写type'}}"  >
                                </div>
                            </div>
                           <!--  <div class="form-group">
                                <label class="col-sm-3 control-label">备注：</label>
                                <div class="col-sm-8">
                                       <textarea id="ccomment" name="message" cols="55" rows="3" class="form-control" >${(dto.message?html)!}</textarea>
                                </div>
                            </div> -->
                            
                               
                        </form>
                        
                    </div>
                </div>
                </div>
